package br.edu.ufabc.gtrnp.helppo.util;

import java.io.IOException;
import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;
import static br.edu.ufabc.gtrnp.helppo.util.HelppoConstants.HELPPO_FILE_NAME;

public class HelppoProperties {
	private static ResourceBundle resourceBundle;
	
	public static ResourceBundle getInstance() throws IOException{
		if(resourceBundle == null){
			resourceBundle = new PropertyResourceBundle(HelppoProperties.class.getResourceAsStream(HELPPO_FILE_NAME));
		}
		return resourceBundle;
	}
	
}
